import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../views/Login.vue'
import Home from '../views/Home.vue'
import studentColumn from '../views/Students/studentColumn.vue'
import studentBar from '../views/Students/studentBar.vue'
import studentDualAxes from '../views/Students/studentDualAxes.vue'
import studentPoint from '../views/Students/studentPoint.vue'
import studentSeach from '../views/Students/studentSeach.vue'
import studentPie from '../views/Students/studentPie.vue'
import studentManage from '../views/Students/studentManage.vue'
import Mainstudents from "../views/Students/Mainstudents";
import studentBasis from '../views/Students/studentBasis.vue'
import classMessage from '../views/Students/classMessage.vue'
import Chatroom from '../views/chatroom.vue'
import Carousel from '../views/Dashboard/Carousel.vue'
import distribution from '../views/Teachers/distribution.vue'
import VueWordcloud from 'vue-b2wordcloud'
import classmateView from '../views/Teachers/classmateView.vue'
import BMI from '../views/BMI.vue'
import PersonalCenter from '../views/PersonalCenter.vue'
import AdminCenter from '../views/AdminCenter.vue'
import TeacherCenter from '../views/TeacherCenter.vue'
import addStudent from '../views/Teachers/addStudent.vue'
import classManagement from '../views/Teachers/classManagement.vue'
import wx from '../views/Teachers/wx.vue'
import teacherMessage from '../views/Teachers/teacherMessage.vue'
import addTeacher from '../views/Admin/addTeacher.vue'
import Peoplemessage from '../views/Admin/Peoplemessage.vue'
import AFTableColumn from 'af-table-column'




Vue.use(VueRouter)
Vue.use(VueWordcloud)
Vue.use(AFTableColumn)
const routes = [
    {
        path: '/',
        name: 'Login',
        component: Login,
        hidden: true
    },
    {
        path: '/home',
        name: 'Dashboard',
        component: Home,
        children: [
            {
                path: '/Carousel',
                name: 'Carousel',
                component: Carousel
            },
        ],
        hidden: true
    },
    {
        path: '/home',
        name: 'Students',
        component: Home,
        children: [
            {
                path: '/Mainstudents',
                name: '集成页面',
                component: Mainstudents
            },
            {
                path: '/studentManage',
                name: '学生管理',
                component: studentManage
            },
            {
                path: '/studentSeach',
                name: '单个学生查询',
                component: studentSeach,
            },
            {
                path: '/studentBasis',
                name: '汇总学生信息',
                component: studentBasis
            },
            {
                path: '/studentColumn',
                name: '柱状图',
                component: studentColumn
            },
            {
                path: '/studentBar',
                name: '条形图',
                component: studentBar
            },
            {
                path: '/studentDualAxes',
                name: '折线图',
                component: studentDualAxes
            },
            {
                path: '/studentPoint',
                name: '散点图',
                component: studentPoint,
            },

            {
                path: '/studentPie',
                name: '饼图',
                component: studentPie,
            },
            {
                path: '/BMI',
                name: 'BMI',
                component: BMI
            },
            {
                path: '/addStudent',
                name: '添加学生信息',
                component: addStudent
            },
            {
                path: '/classMessage',
                name: '所在班级信息',
                component: classMessage
            },
            {
                path: '/teacherMessage',
                name: '老师信息',
                component: teacherMessage
            },

        ],
        hidden: true
    },

    {
        path: '/home',
        name: 'Teachers',
        component: Home,
        children: [
            {
                path: '/wx',
                name: '教师信息',
                component: wx
            },
            {
                path: '/distribution',
                name: '教师分布',
                component: distribution
            },
            {
                path: '/classManagement',
                name: '班级管理',
                component: classManagement
            }
        ]
    },

    {
        path: '/home',
        name: 'Admin',
        component: Home,
        children: [
            {
                path: '/Peoplemessage',
                name: '人员信息调度',
                component: Peoplemessage
            },
            {
                path: '/BMI',
                name: 'BMI',
                component: BMI
            },
            {
                path: '/addTeacher',
                name: '添加老师信息',
                component: addTeacher
            },
        ]
    },

    {
        path: '/home',
        name: '运动聊天室',
        component: Home,
        children: [
            {
                path: '/chatroom',
                name: '运动聊天室',
                component: Chatroom
            }
        ]
    },
    {
        path: '/home',
        name: '个人中心',
        component: Home,
        children: [
            {
                path: '/PersonalCenter',
                name: 'PersonalCenter',
                component: PersonalCenter
            },
        ],
        hidden: true
    },
    {
        path: '/home',
        name: '个人中心',
        component: Home,
        children: [
            {
                path: '/AdminCenter',
                name: 'AdminCenter',
                component: AdminCenter
            },
        ],
        hidden: true
    },
    {
        path: '/home',
        name: '个人中心',
        component: Home,
        children: [
            {
                path: '/TeacherCenter',
                name: 'TeacherCenter',
                component: TeacherCenter
            },
        ],
        hidden: true
    },
]

const router = new VueRouter({
    routes
})

export default router
